package com.ghd.dataviz;

import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Service;

/**
 * @author ：ghd
 * @date ：Created in 2020-04-06 01:25
 * @description：
 * @modified By：
 * @version: $
 */
@Service
@RocketMQMessageListener(topic = "demo2", consumerGroup = "string_consumer")
public class StringConsumer implements RocketMQListener<String> {
    @Override
    public void onMessage(String message) {
        System.out.printf("------- StringConsumer received: %s \n", message);
    }
}
